<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    function parseUrl(url){
      const a = document.createElement('a')
      a.href = url
      return {
        href: url,
        origin:a.origin,
        protocol:a.protocol,
        username:a.username,
        password:a.password,
        host:a.host,
        hostname:a.hostname,
        port: a.port,
        pathname:a.pathname,
        search:a.search,
        hash:a.hash
      }
    }

  console.log(parseUrl('http://localhost:63342/learn-demo/html/%E8%A7%A3%E6%9E%90url.html?_ijt=8742d1ght3ierhq4kagngkdnkd&_ij_reload=RELOAD_ON_SAVE'))
</script>
</html>